#ifndef SDPLAYER_H
#define SDPLAYER_H

#include <vector>
#include <math.h>
#include "../src/chipmunk.h"
#include "sdShip.h"
#include "sdTimed.h"

//TODO: A PLAYER WILL PROBABLY HAVE AN OBJECT OR A SPECIALIZED SHIP OBJECT AND WILL JUST CONTROL THAT
//IN THE FORM OF FUNCTION CALLS(getPlayer(1).turnToFace(something) or getPlayer(3).health()). UNIVERSE 
//WILL CONTROL ONE SHIP WITH THE HELP OF sdInput AND ALL THE OTHER NETWORK PLAYERS WILL BE CONTROLLED
//BY THE NETWORK INTERFACE

class sdPlayer {
private:
    sdShip ship_;
    
    //TODO: Maybe give each player a type of input, like kbinput or network input, have update run input handling
		    
public:
    sdPlayer();
    
    inline sdShip& getShip() {return ship_;}
    
    inline bool alive() {return !ship_.dead();}
    
    void move(cpVect& direction); //direction of force, amp 1.0 is full in that direction
    void turn(cpVect& direction); //turn to face this direction at speed
    bool shoot(int weapon, sdTimed& bullet);
    void draw();
};

#endif

